package com.tequila.domain.dto;

import com.tequila.domain.enums.StateEnum;

import java.util.Date;

public class AnaDto {
     private Long id;
     private Date createTime;
     private Date updateTime;
     private String content;
     private String state;
     private String stateText;
     private Long cardId;
     private String isDeleted;

     public void setId(Long id) {
         this.id = id;
     }

     public Long getId() {
         return id;
     }
     public void setCreateTime(Date createTime) {
         this.createTime = createTime;
     }

     public Date getCreateTime() {
         return createTime;
     }
     public void setUpdateTime(Date updateTime) {
         this.updateTime = updateTime;
     }

     public Date getUpdateTime() {
         return updateTime;
     }
     public void setContent(String content) {
         this.content = content;
     }

     public String getContent() {
         return content;
     }
     public void setState(String state) {
         this.state = state;
     }

     public String getState() {
         return state;
     }
     public void setCardId(Long cardId) {
         this.cardId = cardId;
     }

     public Long getCardId() {
         return cardId;
     }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getStateText() {
        return StateEnum.fromCode(state) == null ? null : StateEnum.fromCode(state).getText();
    }

    public void setStateText(String stateText) {
        this.stateText = stateText;
    }
}